<?php
ini_set('include_path',
   ini_get('include_path') . PATH_SEPARATOR . '/home2/geekopol/php');
require_once 'DB.php';

//Connect To Database
function dbconnect() {
	
	$hostname='geekopolis.net';
	$username='geekopol_admin';
	$password='Lcelb77OKg';
	$dbname='geekopol_geekopolis';
	$dsn = "mysql://$username:$password@$hostname/$dbname";
	$db = &DB::connect($dsn, array());
	if (DB::isError( $db )) {		
		die( "Could not connect to the database: " . $db->getMessage());	
	}
	$db->autoCommit(false);
	return $db;
}
?>